package com.teamall.web.sjtj.db.dao.mapper;

import com.teamall.web.sjtj.db.arg.CodeVisitedOrderArg;
import com.teamall.web.sjtj.db.po.CodeVisitedOrderPO;

import java.math.*;
import java.util.*;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

public interface ICodeVisitedOrderMapper {
    
    List<Integer> countByArg(CodeVisitedOrderArg arg);

    List<CodeVisitedOrderPO> selectByArg(CodeVisitedOrderArg arg);

    CodeVisitedOrderPO selectByPrimaryKey(Integer id);

    List<CodeVisitedOrderPO> selectByArgAndPage(CodeVisitedOrderArg arg, RowBounds rowBound);

    int insert(CodeVisitedOrderPO record);

    int insertSelective(CodeVisitedOrderPO record);

    int insertBatch(@Param("list") List<CodeVisitedOrderPO> records);

    int updateByArgSelective(@Param("record") CodeVisitedOrderPO record,
            @Param("arg") CodeVisitedOrderArg arg);

    int updateByArg(@Param("record") CodeVisitedOrderPO record,
            @Param("arg") CodeVisitedOrderArg arg);

    int updateByPrimaryKeySelective(CodeVisitedOrderPO record);

    int updateByPrimaryKey(CodeVisitedOrderPO record);
    
    int deleteByArg(CodeVisitedOrderArg arg);
    
    int deleteByPrimaryKey(Integer id);
    
}